package com.majie.jedis;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * jedis配置
 * 
 * @author majie
 *
 */
@ConfigurationProperties(prefix = "jedis")
public class JedisProperties {

	//默认6379
	private int port;

	//默认localhost
	private String host;

	//2s
	private int timeout;

	//默认不传
	private String password;

	//默认为8
	private int poolMaxTotal;
	
	//默认为0
	private int poolMinIdle;

	//默认为8
	private int poolMaxIdle;

	//-1
	private int poolMaxWait;// 秒

	//默认0
	private int database;

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getPoolMaxTotal() {
		return poolMaxTotal;
	}

	public void setPoolMaxTotal(int poolMaxTotal) {
		this.poolMaxTotal = poolMaxTotal;
	}

	public int getPoolMaxIdle() {
		return poolMaxIdle;
	}

	public void setPoolMaxIdle(int poolMaxIdle) {
		this.poolMaxIdle = poolMaxIdle;
	}

	public int getPoolMaxWait() {
		return poolMaxWait;
	}

	public void setPoolMaxWait(int poolMaxWait) {
		this.poolMaxWait = poolMaxWait;
	}

	public int getDatabase() {
		return database;
	}

	public void setDatabase(int database) {
		this.database = database;
	}

	public int getPoolMinIdle() {
		return poolMinIdle;
	}

	public void setPoolMinIdle(int poolMinIdle) {
		this.poolMinIdle = poolMinIdle;
	}

	
}
